﻿using System;
using System.Collections.Generic;

namespace XF.Model
{
	/// <summary>
	/// Bill_STOHead:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Bill_STOHead
	{
		public Bill_STOHead()
		{}
		#region Model
		private int _id;
		private string _ordercode;
		private DateTime? _orderdate;
		private int? _customerid;
		private string _remark;
		private DateTime? _createdate;
		private string _createuser;
		private DateTime? _lastupdatedate;
		private string _lastupdateuser;
		private bool _enable= true;
		#region 扩展属性
		private string _customercode;
		private string _customername;
		private int _paytype;
		private string _customerremark;
		private string _customercontacts;
		private string _customerphone;
		private int? _customerno;
		private string _customeraccount;
		private string _customeraddress;

		public string CustomerCode
        {
            get { return _customercode; }
			set { _customercode = value; }
        }

		public string CustomerName
		{
			get { return _customername; }
			set { _customername = value; }
		}

		public int PayType
        {
            get { return _paytype; }
            set { _paytype = value; }
        }

		public string CustomerRemark
		{
			get { return _customerremark; }
			set { _customerremark = value; }
		}

		public string CustomerContacts
		{
			get { return _customercontacts; }
			set { _customercontacts = value; }
		}

		public string CustomerPhone
		{
			get { return _customerphone; }
			set { _customerphone = value; }
		}

		public int? CustomerNo
		{
			get { return _customerno; }
			set { _customerno = value; }
		}

		public string CustomerAccount
		{
			get { return _customeraccount; }
			set { _customeraccount = value; }
		}

		public string CustomerAddress
		{
			get { return _customeraddress; }
			set { _customeraddress = value; }
		}

		private List<XF.Model.Bill_STOItems> _items;
		public List<XF.Model.Bill_STOItems> Items
        {
			get
			{
				if (_items == null)
				{
					_items = new List<XF.Model.Bill_STOItems>();
				}
				return _items;
			}
            set { _items = value; }
        }
		#endregion
		/// <summary>
		/// 
		/// </summary>
		public int Id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string OrderCode
		{
			set{ _ordercode=value;}
			get{return _ordercode;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? OrderDate
		{
			set{ _orderdate=value;}
			get{return _orderdate;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? CustomerId
		{
			set{ _customerid=value;}
			get{return _customerid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Remark
		{
			set { _remark = value; }
			get { return _remark; }
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? CreateDate
		{
			set{ _createdate=value;}
			get{return _createdate;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CreateUser
		{
			set{ _createuser=value;}
			get{return _createuser;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? LastUpdateDate
		{
			set{ _lastupdatedate=value;}
			get{return _lastupdatedate;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string LastUpdateUser
		{
			set{ _lastupdateuser=value;}
			get{return _lastupdateuser;}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool Enable
		{
			set{ _enable=value;}
			get{return _enable;}
		}
		#endregion Model

	}
}

